import request from "./request.js";
// 我的车辆
export function myCarList(){
    return request.get("/car/list")
}
// 查询详情
export function myCarOne(id){
    return request({
        method:"get",
        url:"/car/getOneCar",
        params:{id}
    })
}

//获取车牌号的省市
export function getCarPlate(){
    return request.get("/car/carLicenseList")
}
// 获取车辆品牌
export function getCarBrand(){
    return request.get("/car/brandList")
}
// 获取燃料类型
export function getFuelType(){
    return request.get("/car/fuelTypeList")
}
// 获取排量类型
export function getDisplacement(){
    return request.get("/car/displacementList")
}
// 获取电池类型
export function getBatteryType(){
    return request.get("/car/batteryCapacityList")
}
// 上传头像
export function updateAvatarImgJs(file){
    return request.post("/car/uploadAvatarImg",file)
}
// 添加车辆
export function addCar(data){
    return request.post("/car/addCar",data)
}
//移除车辆
export function removeCar(id){
    return request({
        method:"post",
        url:"/car/removeCar",
        params:{id}
    })
}